const routes=[
  // 重定向
  {
    path:"/",
    redirect:"/Login"
},
// 一级路由
{
    path:"/Login",
    component:()=>import("../views/login.vue"),
    meta:{title:"登录"}
},
{
  path:"/admin",
  name:"admin",
  component:()=>import("../views/Admin/index.vue"),
  redirect:"/admin/Home",
  // 二级路由
  children:[
    {
        id:"1",
        name:"Home",
        path: "Home",
        component: () => import("../views/Admin/Home/Index.vue"),
    },
//     {
//       path:"/addbanner",
//       component:()=>import("../views/Admin/Banner/addbanner.vue"),
//     },
//     {
//       path:"/listadmin",
//       component:()=>import("../views/Admin/Admin/listadmin.vue"),
//     },
//     {
//       path:"/addadmin",
//       component:()=>import("../views/Admin/Admin/addadmin.vue"),
//     },
//     {
//       path:"/goodslist",
//       component:()=>import("../views/Admin/goods/goodslist.vue"),
//     },
//     {
//       path:"/goodspaging",
//       component:()=>import("../views/Admin/goods/goodspaging.vue"),
//     },
//     {
//       path:"/getorder",
//       component:()=>import("../views/Admin/order/getorder.vue"),
//     },
//     {
//       path:"/address",
//       component:()=>import("../views/Admin/address/address.vue"),
//     }
  ]
}
]
  export default routes;